package com.example.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/bobo")
@RefreshScope//动态刷新参数，不加值不会变化！！！
public class ResultController {

    @Value("${env}")
   private  String evn;


    @RequestMapping("/didi")
    public @ResponseBody String  heh(){
             return evn;
    }
}
